<?
$category_url = '';//$this->category?$this->category.'/':'';// варагі забраковалі ?>
<div class="page-caption">
        <h1 class="text"><?=$this->category_info['name'].' '.$this->mark['name'] ?></h1>
</div>
<a style="padding: 10px 0 10px 20px; display: block; text-decoration: none; font-size: 16px;" href="/catalog">← <span style="text-decoration:underline;">Весь каталог</span></a>

<div style="padding-left: 20px;">
    <ul class="model-catalog">
        <? foreach ($this->models as $model): ?>
        <li>
            <? if($model['count']>0): ?>
            <a href="/catalog/<?=$category_url.$this->mark['name'] . '/' . $model['name'] ?>"><?=$model['name'] ?></a>
            <? else: ?>
            <a style="color: #B2B2B2;"><?=$model['name'] ?></a>
            <? endif; ?>
            <span>  (<?= $model['count'] ?>)</span>
        </li>
        <? endforeach; ?>
    </ul>
</div>